<include file="Base:common_head" />
<div id="bd">
    <div class="left1">
        <include file="User:leftmenu" />
    </div>
    <div class="right1 list">
        <ul class="ks-switchable-nav">
            <a style="width:100px;float: left" href="__URL__/zdmx/in/1"><li <if condition="$in eq 1"> class="ks-active"</if>>我的支出</li></a>
            <a style="width:100px;float: left" href="__URL__/zdmx/in/2"><li <if condition="$in eq 2"> class="ks-active"</if>>我的收入</li></a>
        </ul>
        <div class="contents">
            <div class="ks-switchable-content">
                <notempty name="list1">
                    <div class="templist">
                        <div class="list-title">
                            <span class="title">创建时间</span>
                            <span class="frontpage">名称</span>
                            <span class="title">交易号</span>
                            <span class="count">对方</span>
                            <span class="count1">金额</span>
                            <span class="rate">状态</span>
                            <!--                            <span class="status"></span>-->
                            <span class="op">管理</span>
                        </div>
                        <foreach name="list1" item="list1" key="k">
                            <div class="temp-item" id="d{$list1.id}">
                                <span class="title">{$list1.ftime}</span>
                                <span class="frontpage"><if condition="$list1.tempid eq null">{$list1.title}<else /><a href="http://<if condition='$type[$k] eq 1'>zxn<else/>zx</if>.taobao.com/detail.htm?id={$list1['tempid']}">{$list1.title}</a></if></span>
                                <span class="title">{$list1.indent}</span>
                                <span class="count"><if condition="$in eq 1">{$list1.forname}<else />{$list1.name}</if></span>
                                <span class="count1">{$list1.money}</span>
                                <span class="rate">成功</span>
                                <!--                                <span class="status"></span>-->
                                <span class="op"><a href="javascript:;" onclick="delet('{$list1.id}')">删除</a></span>
                            </div>
                        </foreach>
                        <div class="pages" style="margin:10px 0;">{$page}</div>
                    </div>
                    <else/>
                    <div class="no-jilu">
                        暂无模板记录    
                    </div>
                </notempty>
            </div>
        </div> 
    </div>
</div>
<style type="text/css">
    #setrate { display:none;}
    .topadmin { width:728px; height:auto; overflow:hidden; margin-bottom:15px;}
    .topadmin span { display:block; float:left; line-height:26px; overflow:hidden; height:26px; width:auto;}
    .topadmin select { display:block; height:26px; line-height:26px; float:left; margin-right:10px;}
    .topadmin input { width:50px; height:22px; line-height:22px; margin-right:10px;}
    .topadmin #submit { width:auto; padding:0 10px; height:26px; line-height:26px;}	
    .ops { height:30px; width:728px; margin:10px 0;}
    .ops a { display:block; width:auto; padding:0 10px; height:20px; line-height:20px; text-align:center; border:1px solid #aaa; background-color:#eee; text-decoration:none; float:left; margin-right:10px; color:#000;}
    .ops a:hover { background-color:#666; color:#fff;}
    .templist { width:728px; height:auto; overflow:hidden;}
    .templist .list-title { height:30px; line-height:30px; font-weight:bold; border-bottom:2px solid #eaeaea; margin-bottom:10px;}
    .templist .temp-item { height:26px; line-height:26px; cursor:pointer; clear:both; padding:15px 0;position: relative;}
    .templist .temp-item .po{position: absolute;left: 330px;top: 80px;height: 20px;width: auto;display: block;color: red;line-height: 20px;}
    .templist span { display:block; float:left;}
    .templist span input { margin-top:8px;}
    .templist .id { width:30px; text-align:center; margin-right:10px;}
    .templist .title { width:130px; text-align:center; margin-right:10px;}
    .templist .frontpage { width:100px; text-align:center; margin-right:10px;}
    .templist .price { width:60px; text-align:center; margin-right:10px;}
    .templist .count { width:60px; text-align:center; margin-right:10px;}
    .templist .count1 { width:60px; text-align:center;}
    .templist .rate { width:60px; text-align:center;}
    .templist .status { width:50px; text-align:center;}
    .templist .op { width:120px; text-align:center;}
</style>
<script type="text/javascript">
    function delet(i){
        var r=confirm("确认删除?")
        if(r == true){
            $("#d"+i).animate({opacity: 'hide'}, 500);
            $.get('__URL__/delbill/id/'+i,function(data){
                if(data == 1){
                    var h = window.screen.height;
                    var w = window.screen.width;
                    $("#edit").css({"left":(w/2)+"px","top":(h/2-100)+"px"});
                    $("#edit").animate({opacity: 'show'}, 1000);
                    $("#edit").html('删除成功').animate({opacity: 'hide'}, 1000);
                }
            });
        }
    }
</script>
